package com.imooc.demo.dao;

import com.imooc.demo.entity.Board;
import com.imooc.demo.entity.UserInfo;

import java.util.List;

public interface BoardDao {
    //创建留言
    boolean messagesInsert(Board board);
    //查看留言
    List<Board> findMessagesByOpenid(String buyerOpenid );
    Board findMessagesById(Integer boardId);
    //删除留言
    boolean messagesDelete(Board board);

    //回复留言
    boolean replyInsert(Board board);

    //平台答复
    List<UserInfo> getReply(String buyerOpenid );
    List<Board> getUnRead(String buyerOpenid );
    ////消息设置为已读
    boolean setReadStatus(Board board);
    /////
    List<Board> getBoardByBoardId(Integer boardId);




}
